this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["product-gallery-thumbnails"]=function(e){function t(t){for(var n,c,i=t[0],a=t[1],u=t[2],p=0,b=[];p<i.length;p++)c=i[p],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&b.push(o[c][0]),o[c]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);b.length;)b.shift()();return l.push.apply(l,u||[]),r()}function r(){for(var e,t=0;t<l.length;t++){for(var r=l[t],n=!0,i=1;i<r.length;i++){var a=r[i];0!==o[a]&&(n=!1)}n&&(l.splice(t--,1),e=c(c.s=r[0]))}return e}var n={},o={31:0},l=[];function c(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.m=e,c.c=n,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(r,n,function(t){return e[t]}.bind(null,n));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var s=a;return l.push([527,0]),r()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},17:function(e,t,r){"use strict";r.d(t,"p",(function(){return l})),r.d(t,"n",(function(){return c})),r.d(t,"m",(function(){return i})),r.d(t,"o",(function(){return a})),r.d(t,"k",(function(){return u})),r.d(t,"e",(function(){return s})),r.d(t,"h",(function(){return p})),r.d(t,"l",(function(){return b})),r.d(t,"c",(function(){return m})),r.d(t,"d",(function(){return d})),r.d(t,"g",(function(){return f})),r.d(t,"a",(function(){return O})),r.d(t,"b",(function(){return w})),r.d(t,"i",(function(){return j})),r.d(t,"j",(function(){return E})),r.d(t,"f",(function(){return C}));var n,o=r(3);const l=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),c=l.pluginUrl+"images/",i=l.pluginUrl+"build/",a=l.buildPhase,u=null===(n=o.STORE_PAGES.shop)||void 0===n?void 0:n.permalink,s=o.STORE_PAGES.checkout.id,p=(o.STORE_PAGES.checkout.permalink,o.STORE_PAGES.privacy.permalink),b=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),m=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id),d=o.STORE_PAGES.cart.permalink,f=(o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),Object(o.getSetting)("localPickupEnabled",!1)),g=Object(o.getSetting)("countries",{}),h=Object(o.getSetting)("countryData",{}),O=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,g[e]||""]))),w=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,h[e].states||[]]))),j=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,g[e]||""]))),E=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,h[e].states||[]]))),C=Object.fromEntries(Object.keys(h).map((e=>[e,h[e].locale||[]])))},194:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(0),o=r(5),l=r(1),c=r(70),i=r(9),a=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},Object(n.createElement)("g",{clipPath:"url(#clip0_420_11645)"},Object(n.createElement)("path",{d:"M22.5 3H10.5C9.4 3 8.5 3.9 8.5 5V19C8.5 20.1 9.4 21 10.5 21H22.5C23.6 21 24.5 20.1 24.5 19V5C24.5 3.9 23.6 3 22.5 3ZM10.5 4.5H22.5C22.8 4.5 23 4.7 23 5V13.4L21 10.5C20.7 10.2 20.2 10.2 20 10.5L16.4 14L13.5 12C13.2 11.8 12.9 11.8 12.7 12L10.1 14.6V5C10 4.7 10.2 4.5 10.5 4.5ZM22.5 19.5H10.5C10.2 19.5 10 19.3 10 19V16.6L13.1 13.6L16.1 15.5C16.4 15.7 16.8 15.7 17 15.4L20.5 12L23 15.4V19C23 19.3 22.8 19.5 22.5 19.5Z",fill:"currentColor"}),Object(n.createElement)("rect",{x:"1.25",y:"3.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),Object(n.createElement)("rect",{x:"1.25",y:"10.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),Object(n.createElement)("defs",null,Object(n.createElement)("clipPath",{id:"clip0_420_11645"},Object(n.createElement)("rect",{width:"24",height:"24",fill:"white",transform:"translate(0.5)"})))),u=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},Object(n.createElement)("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V12C3 13.1 3.9 14 5 14H19C20.1 14 21 13.1 21 12V5C21 3.9 20.1 3 19 3ZM5 4.5H19C19.3 4.5 19.5 4.7 19.5 5V8.4L16.5 5.5C16.2 5.2 15.7 5.2 15.5 5.5L11.9 9L9 7C8.7 6.8 8.4 6.8 8.2 7L4.6 9.6V5C4.5 4.7 4.7 4.5 5 4.5ZM19 12.5H5C4.7 12.5 4.5 12.3 4.5 12V11.6L8.6 8.6L11.6 10.5C11.9 10.7 12.3 10.7 12.5 10.4L16 7L19.5 10.4V12C19.5 12.3 19.3 12.5 19 12.5Z",fill:"currentColor"}),Object(n.createElement)("rect",{x:"6.25",y:"15.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),Object(n.createElement)("rect",{x:"13.25",y:"15.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),s=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},Object(n.createElement)("g",{clipPath:"url(#clip0_420_11656)"},Object(n.createElement)("path",{d:"M14.5 3H2.5C1.4 3 0.5 3.9 0.5 5V19C0.5 20.1 1.4 21 2.5 21H14.5C15.6 21 16.5 20.1 16.5 19V5C16.5 3.9 15.6 3 14.5 3ZM2.5 4.5H14.5C14.8 4.5 15 4.7 15 5V13.4L13 10.5C12.7 10.2 12.2 10.2 12 10.5L8.4 14L5.5 12C5.2 11.8 4.9 11.8 4.7 12L2.1 14.6V5C2 4.7 2.2 4.5 2.5 4.5ZM14.5 19.5H2.5C2.2 19.5 2 19.3 2 19V16.6L5.1 13.6L8.1 15.5C8.4 15.7 8.8 15.7 9 15.4L12.5 12L15 15.4V19C15 19.3 14.8 19.5 14.5 19.5Z",fill:"currentColor"}),Object(n.createElement)("rect",{x:"19.25",y:"3.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"}),Object(n.createElement)("rect",{x:"19.25",y:"10.75",width:"4.5",height:"4.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),Object(n.createElement)("defs",null,Object(n.createElement)("clipPath",{id:"clip0_420_11656"},Object(n.createElement)("rect",{width:"24",height:"24",fill:"currentColor",transform:"translate(0.5)"})))),p=r(6),b=r(2),m=r(69);const d={[m.a.OFF]:Object(l.__)("No thumbnails will be displayed.","woocommerce"),[m.a.LEFT]:Object(l.__)("A strip of small images will appear to the left of the main gallery image.","woocommerce"),[m.a.BOTTOM]:Object(l.__)("A strip of small images will appear below the main gallery image.","woocommerce"),[m.a.RIGHT]:Object(l.__)("A strip of small images will appear to the right of the main gallery image.","woocommerce")},f=({context:e})=>{const{productGalleryClientId:t}=e,{updateBlockAttributes:r}=Object(p.useDispatch)(o.store);return Object(n.createElement)(o.InspectorControls,null,Object(n.createElement)(b.PanelBody,{title:Object(l.__)("Settings","woocommerce")},Object(n.createElement)(b.__experimentalToggleGroupControl,{className:"wc-block-editor-product-gallery-thumbnails__position-toggle",isBlock:!0,label:Object(l.__)("Thumbnails","woocommerce"),value:e.thumbnailsPosition,help:d[e.thumbnailsPosition],onChange:e=>r(t,{thumbnailsPosition:e})},Object(n.createElement)(b.__experimentalToggleGroupControlOption,{value:m.a.OFF,label:Object(l.__)("Off","woocommerce")}),Object(n.createElement)(b.__experimentalToggleGroupControlOption,{value:m.a.LEFT,label:Object(n.createElement)(c.a,{size:32,icon:a})}),Object(n.createElement)(b.__experimentalToggleGroupControlOption,{value:m.a.BOTTOM,label:Object(n.createElement)(c.a,{size:32,icon:u})}),Object(n.createElement)(b.__experimentalToggleGroupControlOption,{value:m.a.RIGHT,label:Object(n.createElement)(c.a,{size:32,icon:s})})),e.thumbnailsPosition!==m.a.OFF&&Object(n.createElement)(b.RangeControl,{label:Object(l.__)("Number of Thumbnails","woocommerce"),value:e.thumbnailsNumberOfThumbnails,onChange:e=>r(t,{thumbnailsNumberOfThumbnails:e}),help:Object(l.__)("Choose how many thumbnails (2-8) will display. If more images exist, a “View all” button will display.","woocommerce"),max:8,min:2})))}},2:function(e,t){e.exports=window.wp.components},252:function(e){e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-gallery-thumbnails","version":"1.0.0","title":"Thumbnails","description":"Display the Thumbnails of a product.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["postId","thumbnailsPosition","thumbnailsNumberOfThumbnails","productGalleryClientId"],"textdomain":"woocommerce","ancestor":["woocommerce/product-gallery"],"supports":{"spacing":{"margin":true,"__experimentalDefaultControls":{"margin":true}}}}')},3:function(e,t){e.exports=window.wc.wcSettings},314:function(e,t){},315:function(e,t){},320:function(e,t,r){"use strict";r.r(t);var n=r(7),o=r(83),l=r(0),c=r(5),i=r(2),a=r(17),u=(r(315),r(194)),s=r(69);var p=r(252);r(314),Object(o.a)()&&Object(n.registerBlockType)(p,{icon:()=>Object(l.createElement)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.375 1.5H1.625C1.55596 1.5 1.5 1.55596 1.5 1.625V9.87895L4.35871 8.33965C4.5696 8.22609 4.82204 8.22009 5.03808 8.3235L7.42329 9.46513L10.3126 7.39076C10.574 7.20308 10.926 7.20308 11.1874 7.39076L13.5 9.05108V1.625C13.5 1.55596 13.444 1.5 13.375 1.5ZM13.5 10.8976L10.75 8.92328L7.93741 10.9426C7.71497 11.1023 7.42319 11.1281 7.1762 11.0098L4.73428 9.84105L1.5 11.5826V13.375C1.5 13.444 1.55596 13.5 1.625 13.5H13.375C13.444 13.5 13.5 13.444 13.5 13.375V10.8976ZM1.625 0C0.727537 0 0 0.727538 0 1.625V13.375C0 14.2725 0.727538 15 1.625 15H13.375C14.2725 15 15 14.2725 15 13.375V1.625C15 0.727537 14.2725 0 13.375 0H1.625ZM17.25 5V16C17.25 16.6909 16.6909 17.25 16.0011 17.25H3V18.75H16.0011C17.5204 18.75 18.75 17.5183 18.75 16V5H17.25Z",fill:"#1E1E1E"})),edit:({attributes:e,setAttributes:t,context:r})=>{const n=Object(c.useBlockProps)();return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{...n},Object(l.createElement)(c.InspectorControls,null,Object(l.createElement)(u.a,{attributes:e,setAttributes:t,context:r})),Object(l.createElement)(i.Disabled,null,Object(l.createElement)((()=>r.thumbnailsPosition!==s.a.OFF?Object(l.createElement)("div",{className:"wc-block-editor-product-gallery-thumbnails"},[...Array(r.thumbnailsNumberOfThumbnails).keys()].map((e=>Object(l.createElement)("img",{key:e,src:`${a.n}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"})))):null),null))))},save:()=>null})},5:function(e,t){e.exports=window.wp.blockEditor},527:function(e,t,r){e.exports=r(320)},6:function(e,t){e.exports=window.wp.data},69:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));let n=function(e){return e.OFF="off",e.LEFT="left",e.BOTTOM="bottom",e.RIGHT="right",e}({})},7:function(e,t){e.exports=window.wp.blocks},83:function(e,t,r){"use strict";r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return i}));var n=r(7),o=r(17);const l=(e,t)=>{if(o.o>2)return Object(n.registerBlockType)(e,t)},c=()=>o.o>2,i=()=>o.o>1},9:function(e,t){e.exports=window.wp.primitives}});